
const Spritesmith = require('spritesmith');
const fs = require('fs');
const path = require('path');

const sprites = ['./loaders/imgs/1-wukong.png', './loaders/imgs/2-wanzi.png'];

Spritesmith.run({
    src: sprites
}, (err, result) => {
    // console.log(result);
    // console.log(result.image);
    console.log(result.coordinates);
    console.log(result.properties);
    fs.writeFileSync(path.join(__dirname, './dist/sprite.png'), result.image);
});

